package com.zxmr.db;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class DBManager {

	SqlMapClient sqlMapper;
	public  void init(String url) throws IOException
	{	 
		File file = new File(url);
		sqlMapper = SqlMapClientBuilder.buildSqlMapClient(new FileInputStream(file));
	}
	public  SqlMapClient getMapper()
	{
		return sqlMapper;
	}
}
